@namespace AntBlazor
@inherits AntDomComponentBase

<CascadingValue Value="this">
    <button class="@ClassMapper.Class" style="@Style" id="@Id" @onclick="HandleOnClick" disabled="@Disabled">
        @if (Loading)
        {
            <AntIcon Type="loading"></AntIcon>
        }
        @if (!string.IsNullOrEmpty(Icon))
        {
            <AntIcon Type="@Icon" Style="@IconStyle"></AntIcon>
        }

        @ChildContent
    </button>
</CascadingValue>
